package com.jic.member.request.power;

import org.springframework.stereotype.Component;

/**
 * user用到的需要配置的相关常量
 *
 * @author june
 */
//@ConfigurationProperties(prefix = UserConstantsProperties.PREFIX)
@Component
public class UserConstantsProperties {


    public static final String PREFIX = "eshop.user.constants";


    private String redirectUri="https://jftest.haier.com/jfmall/login/logintransfer.shtml";
    //短信接口地址
    //private String smsUrl = "http://221.179.180.158:9007/QxtSms/QxtFirewall";//老地址已过期
    //private String smsUrl = "http://124.251.7.68:8000/QxtSms/QxtFirewall";老地址
    private String smsUrl="http://10.135.104.203/haier/bxl/haier_jfsc1.asp";
    //短信接口用户名
    //private String smsUserName = "haierhb";
    //短信接口密码
    //private String smsPassword = "haierhb";
    //每个手机号每天最多获取多少个验证码
    private int smsPhoneDayLimit = 10;
    //每个ip每天最多获取多少个验证码
    private int smsIpDayLimit = 500;
    //请求短信验证码的时间间隔,单位秒
    private int smsCodeInterval  = 60;
    //短信验证码长度
    private int smsCodeLength  = 6;
    //默认的短信验证码模板id
    private long smsCodeDefaultTemplateId = 1L;
    //验证码每天可以尝试的出错次数
    private int smsCodePhoneErrorCount = 10;
    //验证码有效时间,单位秒,默认10分钟
    private int smsCodeExpireTime = 10*60;


    //默认分页下标
    private int defaultPageIndex = 1;
    //默认每页条数
    private int defaultPageSize = 10;


    private int ewEnable=1;//是否开启预警，默认开启
    private String ewSmsTemplate="【海贝商城】${content}";
    private String ewEmailUser="haibeiadmin@163.com";
    private String ewEmailPwd="jOkrvC3qk2Grp7f7";
    private String ewEmailHost="smtp.163.com";
    private int ewEmailPort=25;
    private String ewWebHook="https://oapi.dingtalk.com/robot/send?access_token=ed2dd3de5d4a1ff09d3b6929b8e057e7f27ea9cd691a1e4e0b2f3c1242faa9ec";


    //通知用户积分即将过期短信模板id
    private long notice_score_expiring_template_id = 10;
    //通知用户积分已过期短信模板id
    private long notice_score_expire_template_id = 11;
    //通知用户积分充值短信模板id
    private long notice_score_charge_template_id = 12;
    //到货提醒短信模板id
    private long expiration_reminder_template_id = 21;


    //积分中心的延长期限(月)
    private int extendMonth = 3;


    private String privacyAggrementUrl = "https://test.haier.com/vipCode/signIn/";


    private String casarteBaseUrl = "";


    private String uocUrl = "https://taccount.haier.com";


    private String uocUrlWx="https://taccount.haier.com";


    private String accessTokenUrl="https://taccount.haier.com";


    private String clientId;
    private String clientSecret;


    private String sclientId="haibeixiaochengxu";
    private String sclientSecret="nA!mC0V5Q8F1Tw";


    private String casarteHost = "http://testuser.casarte.com";


    private String target;


    private String redirect_uri_product;


    private String redirect_uri_checkIn;
    /**
     * 解密失败
     */
    public static final String DECRYPT_ERROR = "103";
    public static final String REQUEST_SUCCESS = "200";
    /**
     * 已设置到期提醒
     */
    public static final int expirationReminderState_AlreadySet = 1;


    public int getSmsCodePhoneErrorCount() {
        return smsCodePhoneErrorCount;
    }


    public void setSmsCodePhoneErrorCount(int smsCodePhoneErrorCount) {
        this.smsCodePhoneErrorCount = smsCodePhoneErrorCount;
    }


    public long getExpiration_reminder_template_id() {
        return expiration_reminder_template_id;
    }


    public void setExpiration_reminder_template_id(long expiration_reminder_template_id) {
        this.expiration_reminder_template_id = expiration_reminder_template_id;
    }


    public String getUocUrlWx() {
        return uocUrlWx;
    }


    public void setUocUrlWx(String uocUrlWx) {
        this.uocUrlWx = uocUrlWx;
    }


    public String getRedirectUri() {
        return redirectUri;
    }


    public String getSclientId() {
        return sclientId;
    }


    public void setSclientId(String sclientId) {
        this.sclientId = sclientId;
    }


    public String getSclientSecret() {
        return sclientSecret;
    }


    public void setSclientSecret(String sclientSecret) {
        this.sclientSecret = sclientSecret;
    }


    public void setRedirectUri(String redirectUri) {
        this.redirectUri = redirectUri;
    }


    public int getEwEmailPort() {
        return ewEmailPort;
    }


    public void setEwEmailPort(int ewEmailPort) {
        this.ewEmailPort = ewEmailPort;
    }


    public String getEwEmailHost() {
        return ewEmailHost;
    }


    public void setEwEmailHost(String ewEmailHost) {
        this.ewEmailHost = ewEmailHost;
    }


    public String getEwEmailPwd() {
        return ewEmailPwd;
    }


    public void setEwEmailPwd(String ewEmailPwd) {
        this.ewEmailPwd = ewEmailPwd;
    }


    public String getEwEmailUser() {
        return ewEmailUser;
    }


    public void setEwEmailUser(String ewEmailUser) {
        this.ewEmailUser = ewEmailUser;
    }


    public String getEwSmsTemplate() {
        return ewSmsTemplate;
    }


    public void setEwSmsTemplate(String ewSmsTemplate) {
        this.ewSmsTemplate = ewSmsTemplate;
    }


    public int getSmsCodeExpireTime() {
        return smsCodeExpireTime;
    }


    public void setSmsCodeExpireTime(int smsCodeExpireTime) {
        this.smsCodeExpireTime = smsCodeExpireTime;
    }


    public long getSmsCodeDefaultTemplateId() {
        return smsCodeDefaultTemplateId;
    }


    public void setSmsCodeDefaultTemplateId(long smsCodeDefaultTemplateId) {
        this.smsCodeDefaultTemplateId = smsCodeDefaultTemplateId;
    }


    public int getSmsCodeLength() {
        return smsCodeLength;
    }


    public void setSmsCodeLength(int smsCodeLength) {
        this.smsCodeLength = smsCodeLength;
    }


    public int getSmsCodeInterval() {
        return smsCodeInterval;
    }


    public void setSmsCodeInterval(int smsCodeInterval) {
        this.smsCodeInterval = smsCodeInterval;
    }


    public int getSmsPhoneDayLimit() {
        return smsPhoneDayLimit;
    }


    public void setSmsPhoneDayLimit(int smsPhoneDayLimit) {
        this.smsPhoneDayLimit = smsPhoneDayLimit;
    }


    public int getSmsIpDayLimit() {
        return smsIpDayLimit;
    }


    public void setSmsIpDayLimit(int smsIpDayLimit) {
        this.smsIpDayLimit = smsIpDayLimit;
    }


    public String getSmsUrl() {
        return smsUrl;
    }


    public void setSmsUrl(String smsUrl) {
        this.smsUrl = smsUrl;
    }


/*    public String getSmsUserName() {
        return smsUserName;
    }


    public void setSmsUserName(String smsUserName) {
        this.smsUserName = smsUserName;
    }


    public String getSmsPassword() {
        return smsPassword;
    }


    public void setSmsPassword(String smsPassword) {
        this.smsPassword = smsPassword;
    }*/


    public int getDefaultPageIndex() {
        return defaultPageIndex;
    }


    public void setDefaultPageIndex(int defaultPageIndex) {
        this.defaultPageIndex = defaultPageIndex;
    }


    public int getDefaultPageSize() {
        return defaultPageSize;
    }


    public void setDefaultPageSize(int defaultPageSize) {
        this.defaultPageSize = defaultPageSize;
    }


    public int getEwEnable() {
        return ewEnable;
    }


    public void setEwEnable(int ewEnable) {
        this.ewEnable = ewEnable;
    }


    public String getEwWebHook() {
        return ewWebHook;
    }


    public void setEwWebHook(String ewWebHook) {
        this.ewWebHook = ewWebHook;
    }


    public long getNotice_score_expiring_template_id() {
        return notice_score_expiring_template_id;
    }


    public void setNotice_score_expiring_template_id(long notice_score_expiring_template_id) {
        this.notice_score_expiring_template_id = notice_score_expiring_template_id;
    }


    public long getNotice_score_expire_template_id() {
        return notice_score_expire_template_id;
    }


    public void setNotice_score_expire_template_id(long notice_score_expire_template_id) {
        this.notice_score_expire_template_id = notice_score_expire_template_id;
    }


    public long getNotice_score_charge_template_id() {
        return notice_score_charge_template_id;
    }


    public void setNotice_score_charge_template_id(long notice_score_charge_template_id) {
        this.notice_score_charge_template_id = notice_score_charge_template_id;
    }


    public int getExtendMonth() {
        return extendMonth;
    }


    public void setExtendMonth(int extendMonth) {
        this.extendMonth = extendMonth;
    }


    public String getPrivacyAggrementUrl() {
        return privacyAggrementUrl;
    }


    public void setPrivacyAggrementUrl(String privacyAggrementUrl) {
        this.privacyAggrementUrl = privacyAggrementUrl;
    }


    public String getCasarteBaseUrl() {
        return casarteBaseUrl;
    }


    public void setCasarteBaseUrl(String casarteBaseUrl) {
        this.casarteBaseUrl = casarteBaseUrl;
    }


    public String getUocUrl() {
        return uocUrl;
    }


    public void setUocUrl(String uocUrl) {
        this.uocUrl = uocUrl;
    }


    public String getClientId() {
        return clientId;
    }


    public void setClientId(String clientId) {
        this.clientId = clientId;
    }


    public String getClientSecret() {
        return clientSecret;
    }


    public void setClientSecret(String clientSecret) {
        this.clientSecret = clientSecret;
    }


    public String getCasarteHost() {
        return casarteHost;
    }


    public void setCasarteHost(String casarteHost) {
        this.casarteHost = casarteHost;
    }


    public String getAccessTokenUrl() {
        return accessTokenUrl;
    }


    public void setAccessTokenUrl(String accessTokenUrl) {
        this.accessTokenUrl = accessTokenUrl;
    }


    public String getTarget() {
        return target;
    }


    public void setTarget(String target) {
        this.target = target;
    }


    public String getRedirect_uri_product() {
        return redirect_uri_product;
    }


    public void setRedirect_uri_product(String redirect_uri_product) {
        this.redirect_uri_product = redirect_uri_product;
    }


    public String getRedirect_uri_checkIn() {
        return redirect_uri_checkIn;
    }


    public void setRedirect_uri_checkIn(String redirect_uri_checkIn) {
        this.redirect_uri_checkIn = redirect_uri_checkIn;
    }
}
